import Data.List
import Data.Char

isPangram :: String -> String
isPangram xs = if len == 26 then "pangram" else "not pangram"
    where len = length $ nub $ map toUpper $ filter (/=' ') $ nub xs
    
main = do
    l <- getLine
    putStr $ isPangram l